class PriorityNode {
	// 存储的数据
	private Object data;
	// 下一节点指针
	private PriorityNode next;
	// 优先级
	private int priority;

	public PriorityNode() {
	}

	public PriorityNode(Object data, int priority) {
		this.data = data;
		this.priority = priority;
	}

	public boolean hasNext() {
		if (next == null) {
			return false;
		} else {
			return true;
		}
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public PriorityNode getNext() {
		return next;
	}

	public void setNext(PriorityNode next) {
		this.next = next;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

}
